
// Vue.directive('focus',{
//     inserted(el){
//         el.focus()
//     }
// })

Vue.directive('focus',function(el,binding){
    console.log(binding.name);
    console.log(binding.value);
    console.log(binding.expression);
    console.log(binding.arg);
    console.log(binding.modifiers);
})


// Vue.config.productionTip = false

var app = new Vue({
    el: '#root',
    
    data: {
        title: 'hello'
    },

    mounted(){
        console.log("----root----");
        console.log("app counted");
    },
})

window.app = app